package com.guodefu.sensitive.annotation;

import com.guodefu.sensitive.config.SensitiveStrategy;
import com.guodefu.sensitive.handler.DefaultSensitiveStrategy;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Sensitive {
    Class<? extends SensitiveStrategy> type() default DefaultSensitiveStrategy.class;

    // 其他属性可以根据需要添加，比如自定义的掩码字符或掩盖规则
    String maskString() default "****";
}
